import request from './index'

export const learningRecordApi = {
  create(formData) {
    return request.post('/api/learning-records', formData, {
      headers: { 'Content-Type': 'multipart/form-data' }
    })
  },
  getList(params) {
    return request.get('/api/learning-records', { params })
  },
  getOverview() {
    return request.get('/api/learning-records/overview')
  }
}